package com.lxh.platform.jdk;

/**
 * @create: 2021-08-24 14:22
 * @author: xiaoh.luo001@bkjk.com
 * @description:
 **/
public class Test {

    private static final String path = "/Users/luoxiaohui/Develop/codeyun/java_advanced/jdk-demo/src/main/java/com/lxh/platform/jdk";

    public static void main(String[] args) {

        Man man = new Luoxiaohui();
        MyHandler myHandler = new MyHandler(man);
        Man proxyMan = (Man) MyProxy.newProxyInstance(new MyClassLoader(path, "com.lxh.platform.jdk"), Man.class, myHandler);
        System.out.println(proxyMan.getClass().getName());
        proxyMan.findObject();
    }
}
